import { key } from './../store/index';
import request from './request';

export const getAddress = (data: any) => {
    return request({
        method: 'get',
        url: `/ws/geocoder/v1/?address=${data.address}&key=${data.key}`,
    });
};

export const getSuggestion = (data: any) => {
    return request({
        method: 'get',
        url: `/ws/place/v1/suggestion/?keyword=${data.keyword}&key=${data.key}`,
    });
};

export const getgeocoder = (data: any) => {
    return request({
        method: 'get',
        url: `/ws/geocoder/v1/?location=${data.location}&key=${data.key}`,
    });
};
